Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return different success message for oci type - reconcile_source_helm #2859

Merged
merged 1 commit into from
Jun 22, 2022
Merged

Return different success message for oci type - reconcile_source_helm #2859

merged 1 commit into from
Jun 22, 2022

Conversation

somtochiama
Copy link
Member

Ref #2857

@@ -46,5 +47,15 @@ func (obj helmRepositoryAdapter) lastHandledReconcileRequest() string {
}

func (obj helmRepositoryAdapter) successMessage() string {
// HelmRepository of type OCI don't set an Artifact
if obj.Status.Artifact == nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if obj.Status.Artifact == nil {
if obj.Spec.Type == "oci" {

go.mod Outdated
@@ -56,8 +56,8 @@ require (
cloud.google.com/go v0.99.0 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.18 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect
github.com/Azure/go-autorest/autorest v0.11.20 // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes don't seem related to this PR.

@somtochiama somtochiama changed the title Return different success message if status.Artifact isn't present for reconcile_source_helm Return different success message for oci type - reconcile_source_helm Jun 22, 2022
@somtochiama somtochiama marked this pull request as ready for review June 22, 2022 08:41
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @somtochiama 🌷

PS. Please squash the commits

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
@stefanprodan stefanprodan added the area/helm Helm related issues and pull requests label Jun 22, 2022
@stefanprodan stefanprodan merged commit 12504c7 into fluxcd:main Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm Helm related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants